From 44d61e94b273ac427d45ae4aabd152e46443a7ac Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 22 Jan 2008 20:59:22 +0000 Subject: [PATCH] Tweak to r30053... Remove unnecessary sprintf() --- includes/WikiError.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/WikiError.php b/includes/WikiError.php index dede157416..b155f9bf35 100644 --- a/includes/WikiError.php +++ b/includes/WikiError.php @@ -101,12 +101,12 @@ class WikiXmlError extends WikiError { /** @return string */ function getMessage() { - return sprintf( wfMsgHtml( 'xml-error-string', '%s', '%d', '%d', '%d%s', '%s' ), + // '$1 at line $2, col $3 (byte $4): $5', + return wfMsgHtml( 'xml-error-string', $this->mMessage, $this->mLine, $this->mColumn, - $this->mByte, - $this->mContext, + $this->mByte . $this->mContext, xml_error_string( $this->mXmlError ) ); } -- 2.20.1